import {ObjectDto, ObjectDtoInterface} from "../../services/sqliteDB/object.dto";
import { TableColumnType } from "../../services/sqliteDB/object.dto";
import {SyncStatus} from "../sync-status";

export class StorageDto extends ObjectDto implements ObjectDtoInterface {
    public key: string = null;
    public value: string = null; // 编号
    public syncStatus: SyncStatus = SyncStatus.None;
    constructor() {
        super();
    }

    table() {
        return {
            tableName: "Storage",
            tableConstructor: {
              key: `${TableColumnType.text} primary key`,
              value: TableColumnType.text,
              syncStatus: TableColumnType.int
            }
        };
    }

}



